<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="RequestFactory,org.opensocial.client.features.RequestFactory,deleteAppData,getActivities,getAppData,getOwner,getOwnerFriends,getPeople,getViewer,getViewerFriends,makeRequest,requestCreateActivity,requestPermission,requestSendMessage,requestShareApp,updateAppData" name="keywords">
<title>org.opensocial.client.features.RequestFactory</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'RequestFactory - OpenSocial Actionscript 3.0 Client Library Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">OpenSocial AS3 Client Library - Actionscript Reference</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/opensocial/client/features/RequestFactory.html&amp;org/opensocial/client/features/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;RequestFactory</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class RequestFactory"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.opensocial.client.features</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class RequestFactory</td>
</tr>
</table>
<p></p>
 Factory to build the async requests.
 
 <p></p>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 // Request the viewer.
 RequestFactory.getViewer(["gender", "currentLocation"]).addCompleteHandler(
     function(responseItem:ResponseItem):void {
       var viewer:Person = responseItem.getData();
       // deal with the viewer.
     }).send(client);
 </pre></div>
 
 <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deleteAppData()">deleteAppData</a>(keys:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates an appdata request to delete data.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getActivities()">getActivities</a>(userId:String, groupId:String, count:int, startIndex:int = 0, fields:Array = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates an activities request.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getAppData()">getAppData</a>(userId:String, groupId:String, keys:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates an appdata request to get data.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getOwner()">getOwner</a>(fields:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a people request for the owner.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getOwnerFriends()">getOwnerFriends</a>(count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a people request for the owner friends.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPeople()">getPeople</a>(userId:String, groupId:String, count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a typical people request.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getViewer()">getViewer</a>(fields:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a people request for the viewer.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getViewerFriends()">getViewerFriends</a>(count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a people request for the viewer friends.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#makeRequest()">makeRequest</a>(url:String, method:String = null, contentType:String = null, authorization:String = null, postData:Object = null):<a href="../features/ProxiedRequest.html">ProxiedRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a proxied io request.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#requestCreateActivity()">requestCreateActivity</a>(activity:<a href="../base/Activity.html">Activity</a>, priority:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a ui request to create activty.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#requestPermission()">requestPermission</a>(permission:String, reason:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a ui request to permission.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#requestSendMessage()">requestSendMessage</a>(recipientIds:Array, message:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a ui request to send message.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#requestShareApp()">requestShareApp</a>(recipientIds:Array, reason:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates a ui request to share app.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#updateAppData()">updateAppData</a>(data:Object):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a>
</div>
<div class="summaryTableDescription">[static]
   Creates an appdata request to update data.</div>
</td><td class="summaryTableOwnerCol">RequestFactory</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="deleteAppData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deleteAppData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function deleteAppData(keys:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates an appdata request to delete data. This request can only perform on viewer himself.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">keys</span>:Array</code> &mdash; The keys of the data to delete.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getActivities()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getActivities</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getActivities(userId:String, groupId:String, count:int, startIndex:int = 0, fields:Array = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates an activities request.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">userId</span>:String</code> &mdash; The user Id string.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">groupId</span>:String</code> &mdash; The group Id string, can be "</td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:int</code> &mdash; Desired size for responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">startIndex</span>:int</code> (default = <code>0</code>)<code></code> &mdash; Desired start index of the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Desired fields to fetch.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getAppData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getAppData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getAppData(userId:String, groupId:String, keys:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates an appdata request to get data.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">userId</span>:String</code> &mdash; The user Id string.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">groupId</span>:String</code> &mdash; The group Id string, can be "</td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">keys</span>:Array</code> &mdash; Desired keys of the app data.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getOwner()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getOwner</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getOwner(fields:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a people request for the owner.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> &mdash; Desired fields to fetch.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getOwnerFriends()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getOwnerFriends</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getOwnerFriends(count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a people request for the owner friends.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:int</code> &mdash; Desired size for responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">startIndex</span>:int</code> (default = <code>0</code>)<code></code> &mdash; Desired start index of the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Desired fields to fetch.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">filterBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Filter option for the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">sortBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Sorting option for the responding collection.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getPeople()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPeople</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getPeople(userId:String, groupId:String, count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a typical people request.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">userId</span>:String</code> &mdash; The user Id string.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">groupId</span>:String</code> &mdash; The group Id string, can be "</td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:int</code> &mdash; Desired size for responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">startIndex</span>:int</code> (default = <code>0</code>)<code></code> &mdash; Desired start index of the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Desired fields to fetch.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">filterBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Filter option for the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">sortBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Sorting option for the responding collection.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getViewer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getViewer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getViewer(fields:Array):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a people request for the viewer.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> &mdash; Desired fields to fetch.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getViewerFriends()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getViewerFriends</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getViewerFriends(count:int, startIndex:int = 0, fields:Array = null, filterBy:String = null, sortBy:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a people request for the viewer friends.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:int</code> &mdash; Desired size for responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">startIndex</span>:int</code> (default = <code>0</code>)<code></code> &mdash; Desired start index of the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">fields</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Desired fields to fetch.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">filterBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Filter option for the responding collection.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">sortBy</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Sorting option for the responding collection.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="makeRequest()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">makeRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function makeRequest(url:String, method:String = null, contentType:String = null, authorization:String = null, postData:Object = null):<a href="../features/ProxiedRequest.html">ProxiedRequest</a></code><p>
   Creates a proxied io request.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">url</span>:String</code> &mdash; The remote target url.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">method</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The http method for the request, GET or POST.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">contentType</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The desired content type, can be TEXT, JSON or FEED.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">authorization</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The authorization type of the request, NONE, SIGNED or OAUTH.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">postData</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; The post data object if the method is POST.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/ProxiedRequest.html">ProxiedRequest</a></code> &mdash; 
                        A <code>ProxiedRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="requestCreateActivity()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">requestCreateActivity</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function requestCreateActivity(activity:<a href="../base/Activity.html">Activity</a>, priority:String = null):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a ui request to create activty.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">activity</span>:<a href="../base/Activity.html">Activity</a></code> &mdash; The activity object to create.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">priority</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The priority of the activity.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="requestPermission()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">requestPermission</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function requestPermission(permission:String, reason:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a ui request to permission.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">permission</span>:String</code> &mdash; The permission value to request.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">reason</span>:<a href="../base/Message.html">Message</a></code> &mdash; A message as the reason.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="requestSendMessage()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">requestSendMessage</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function requestSendMessage(recipientIds:Array, message:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a ui request to send message.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">recipientIds</span>:Array</code> &mdash; The array of user ids as recipients.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">message</span>:<a href="../base/Message.html">Message</a></code> &mdash; A message to send.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="requestShareApp()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">requestShareApp</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function requestShareApp(recipientIds:Array, reason:<a href="../base/Message.html">Message</a>):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates a ui request to share app.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">recipientIds</span>:Array</code> &mdash; The array of user ids as recipients.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">reason</span>:<a href="../base/Message.html">Message</a></code> &mdash; A message as the reason to send.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="updateAppData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">updateAppData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function updateAppData(data:Object):<a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code><p>
   Creates an appdata request to update data. This request can only perform on viewer himself.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">data</span>:Object</code> &mdash; The key-value pairs to update.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../features/AsyncDataRequest.html">AsyncDataRequest</a></code> &mdash; 
                        An <code>AsyncDataRequest</code> object ready to listen and send.
   
                        
                     </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">2009 OpenSocial</center>
</div>
</body>
</html>
<!--2009 OpenSocial-->
